<?php
/**
* @file $Id: TabsHeader.fnc.php 161 2006-09-07 06:21:17Z doritojones $
* @package Focus/SIS
* @copyright Copyright (C) 2006 Andrew Schmadeke. All rights reserved.
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.txt
* Focus/SIS is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* See COPYRIGHT.txt for copyright notices and details.
*/
function TabsHeader($content,$right='')
{	global $_FOCUS;
	
	if(!isset($_FOCUS['DrawHeader']))
		$_FOCUS['DrawHeader'] = 'bgcolor=#333366';

	$header = '<TABLE width=100% border=0 cellpadding=0 cellspacing=0 bgcolor=#FFFFFF style="border:1;border-style: none none solid none;"><TR><TD>';
	$header .= '<TABLE height=1><TR><TD height=1></TD></TR></TABLE>';
	$header .= '<TABLE border=0 cellpadding=0 cellspacing=0 height=14><TR>';

	$header .= $content;
	$header .= '</TR></TABLE>';	
	
	$header .= '<TABLE height=1><TR><TD height=1></TD></TR></TABLE>';
	$header .= '</TD><TD align='.ALIGN_RIGHT.'>'.$right.'</TD></TR></TABLE>';

	if($_FOCUS['DrawHeader'] == 'bgcolor=#333366' && !$_REQUEST['_FOCUS_PDF'])
		$_FOCUS['DrawHeader'] = 'bgcolor=#FFFFFF style="border:1;border-style: none none solid none;"';		
	else
		$_FOCUS['DrawHeader'] = 'bgcolor=#F0F0F1 style="border:1;border-style: none none solid none;"';

	return $header;
}

?>